﻿<UserControl x:Class="Silverlight.Arcgis.MapTip.地图放大缩小框选等"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    xmlns:sysmbol="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"
    xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client">
    <Grid x:Name="LayoutRoot">
        <!--地图控件-->
        <esri:Map x:Name="MyMap">
            <esri:Map.Layers>
                <!--添加一个底图-->
                <esri:ArcGISDynamicMapServiceLayer
                    Url="{StaticResource MapUrl}"/>
                <!--添加一个绘画图层-->
                <esri:GraphicsLayer ID="MyGraphicsLayer"/>
            </esri:Map.Layers>
        </esri:Map>
        <!--END:地图控件-->
        <!--工具栏-->
        <Canvas VerticalAlignment="Top" Width="215" Height="50"  
                HorizontalAlignment="Left" Margin="20,20,0,0">
            <!--工具栏边框效果-->
            <Rectangle  RadiusX="10" RadiusY="10"
                   Fill="#22000000" Canvas.Left="5" Canvas.Top="5"
                   Width="145" Height="50"/>
            <Rectangle   RadiusX="10" RadiusY="10" 
                   Fill="#775c90b2" Canvas.Left="0" Canvas.Top="0"
                   Width="145" Height="50" Stroke="Gray"/>
            <Rectangle RadiusX="5" RadiusY="5"
                   Fill="#FFFFFFFF" Canvas.Left="10" Canvas.Top="10"
                   Width="125" Height="30" Stroke="DarkGreen"/>
            <!--工具-->
            <StackPanel Canvas.Left="12" Canvas.Top="12" Orientation="Horizontal">
                <Button Content="放大" Height="25" Width="30" Click="Button_Click"/>
                <Button Content="缩小" Height="25" Width="30" Click="Button_Click"/>
                <Button Content="平移" Height="25" Width="30" Click="Button_Click"/>
                <Button Content="全图" Height="25" Width="30" Click="Button_Click"/>

            </StackPanel>
        </Canvas>
        <!--END:工具栏-->


    </Grid>
</UserControl>
